package cn.thinkjoy.LawDataForExcel.action;

import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.impl.StdScheduler;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class Application {
    public static void main(String[] args) throws SchedulerException {
        ApplicationContext context = new
                ClassPathXmlApplicationContext("classpath*:spring/spring.xml");
        Scheduler scheduler= (StdScheduler) context.getBean("SpringJobSchedulerFactoryBean");
        scheduler.start();
    }
}